﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ProductSaleAdd.aspx.cs"
    Inherits="ITOMMS.Web.InsideManage.ProductSaleAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>产品销售添加</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />

    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="aspnetForm" runat="server">
        <div id="message" style="background-color: Red">
        </div>
        <table class="tblDataArea" width="100%">
            <tr class="tblQueryArea">
                <td class="tblDataCaption" colspan="8">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" alt="" /><asp:Label ID="lbltitle"
                            runat="server"  Text="产品销售添加"></asp:Label></div>
                    <asp:Button ID="btnBack" CssClass="cssButton" runat="server" Text="返回" OnClick="btnBack_Click" /></td>
            </tr>
            <tr>
                <td class="tdQueryField" colspan="8">
                    客户信息</td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    公司名称：
                </td>
                <td class="tdQueryField" colspan="5">
                    <span style="color: #ff0000">
                        <asp:TextBox ID="txtConpanyName" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                            onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                            onmouseout="this.className='input_out'" Width="240px"></asp:TextBox>*</span></td>
                <td class="tdQueryCaption" style="width: 130px">
                    服务项目：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddl服务项目" runat="server" >                         
                        <asp:ListItem>网络工程</asp:ListItem>                  
                        <asp:ListItem>IT设备采购</asp:ListItem>
                        <asp:ListItem>IT整体外包</asp:ListItem>
                        <asp:ListItem>IT桌面外包服务</asp:ListItem> 
                    </asp:DropDownList></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    公司地址：</td>
                <td class="tdQueryField" colspan="5">
                    <asp:TextBox ID="txt地址" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="240px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    公司规模：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt公司规模" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    公司电话：</td>
                <td class="tdQueryField" colspan="5">
                    <asp:TextBox ID="txt公司电话" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    传 真：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt传真" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    电子邮箱：</td>
                <td class="tdQueryField" colspan="5">
                    <asp:TextBox ID="txt公司邮箱" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    网 站：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt网站" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    负责人(1)：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt负责人A" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 121px">
                    电话：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt电话A" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 84px">
                    邮箱：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt负责人AEmail" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="102px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    手 机：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt手机A" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    负责人(2)：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt负责人B" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 121px">
                    电话：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt电话B" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 84px">
                    邮箱：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt负责人BEmail" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="102px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    手 机：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txt手机B" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="100px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryField" colspan="8">
                    网络工程信息</td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    网络信息点：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt产品名称" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox><span style="color: #ff0000">*</span></td>
                <td class="tdQueryCaption" style="width: 121px">
                    电话信息点：</td>
                <td class="tdQueryField" colspan="3">
                    <asp:TextBox ID="txt编号" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    </td>
                <td class="tdQueryField">
                    </td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    路由器：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt单位" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 121px">
                    交换机：</td>
                <td class="tdQueryField" colspan="5">
                    <asp:TextBox ID="txt规格" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    服务器机柜：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="txt数量" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 121px">
                    网络机柜：</td>
                <td class="tdQueryField" colspan="3">
                    <asp:TextBox ID="txt单价" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    光纤:</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="TextBox1" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    双绞线：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="TextBox2" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 121px">
                    电话线：</td>
                <td class="tdQueryField" colspan="3">
                    <asp:TextBox ID="TextBox4" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                    配线架：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="TextBox6" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    理线架：</td>
                <td class="tdQueryField" style="width: 122px">
                    <asp:TextBox ID="TextBox3" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="116px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 121px">
                    其它：</td>
                <td class="tdQueryField" colspan="3">
                    <asp:TextBox ID="TextBox5" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" Width="103px"></asp:TextBox></td>
                <td class="tdQueryCaption" style="width: 130px">
                </td>
                <td class="tdQueryField">
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px">
                    上传附件：</td>
                <td class="tdQueryField" colspan="7">
                    <asp:FileUpload ID="FileUpload1" runat="server" Width="319px" />&nbsp; 
                    *(说明：附件大小，请勿超过10M) <a href='<%=picpath %>' runat="server" id="AattachmentPath"
                        target="_blank">
                        </a>
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="height: 81px; width: 240px;">
                    具体详情：</td>
                <td class="tdQueryField" colspan="7" style="height: 81px">
                    <asp:TextBox ID="txt具体详情" runat="server" class="input_out" Height="76px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px; height: 81px">
                    跟进情况一：</td>
                <td class="tdQueryField" colspan="7" style="height: 81px">
                    <asp:TextBox ID="txt跟进情况一" runat="server" class="input_out" Height="76px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px; height: 81px">
                    跟进情况二：</td>
                <td class="tdQueryField" colspan="7" style="height: 81px">
                    <asp:TextBox ID="txt跟进情况二" runat="server" class="input_out" Height="76px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px; height: 81px">
                    跟进情况三：</td>
                <td class="tdQueryField" colspan="7" style="height: 81px">
                    <asp:TextBox ID="txt跟进情况三" runat="server" class="input_out" Height="76px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px; height: 81px">
                    跟进情况四：</td>
                <td class="tdQueryField" colspan="7" style="height: 81px">
                    <asp:TextBox ID="txt跟进情况四" runat="server" class="input_out" Height="76px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px; height: 81px">
                    跟进情况五：</td>
                <td class="tdQueryField" colspan="7" style="height: 81px">
                    <asp:TextBox ID="txt跟进情况五" runat="server" class="input_out" Height="76px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                        onmouseout="this.className='input_out'" TextMode="MultiLine" Width="500px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tdQueryCaption" style="width: 240px" >
                    负责人：</td>
                <td class="tdQueryField" colspan="1" style="width: 122px">
                    <asp:DropDownList ID="ddl负责人" runat="server" >
                    </asp:DropDownList></td>
                <td class="tdQueryCaption" colspan="1" style="width: 121px" >
                    日期时间：</td>
                <td class="tdQueryField" colspan="5">
                    <asp:TextBox ID="txt日期时间" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                        onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                        onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" Width="132px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tblDataCaption" style="width: 240px">
                </td>
                <td class="tblDataCaption" colspan="7">
                    <asp:Button ID="btnSave" CssClass="cssButton" runat="server" Text="提交" OnClientClick="javascript:return confirm('你确认要提交吗?');"
                        OnClick="btnSave_Click" /></td>
            </tr>
        </table>
    </form>
</body>
</html>

<script type="text/javascript">

function check()
{
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

    $("#txt产品名称").attr("dataType","Require");
    $("#txt产品名称").attr("tip", "产品名称不能为空");
    
    
    $("#ddl公司名称").attr("dataType","OverEqualsZero");
    $("#ddl公司名称").attr("tip", "公司名称必须选取");

        $("#txt数量").attr("dataType","Number");
        $("#txt数量").attr("require", "false");
        $("#txt数量").attr("tip", "请输入正确的数字格式");

  
        $("#txt单价").attr("dataType","Currency");
        $("#txt单价").attr("require", "false");
        $("#txt单价").attr("tip", "请输入正确的金额格式");

   
      
                
</script>

